package utils
{
	import flash.utils.IDataInput;
	import flash.utils.IDataOutput;

	public class ByteArrayUtil
	{
		public static function readStringX(buf:IDataInput):String {
			var ret:String = buf.readUTF();
			buf.readByte();
			return ret;
		}
		
		public static function writeStringX(buf:IDataOutput, str:String):void {
			buf.writeUTF(str);
			buf.writeByte(0);
		}
	}
}